<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title></title>
    <link type="text/css" href="../cs/default.css" rel="stylesheet"></link>
    <script type="text/javascript" src="../js/xmlHttp_php.js"></script>
    <script type="text/javascript" src="../js/goods_edit.js"></script>
  </head>
  
  <body onload="initPage()">
    <form method="post" enctype="multipart/form-data" id="form">
    <input type="hidden" name="goods_id" id="goods_id"/>
	
    <input type="hidden" name="command_page" value="upload" />
    <input type="hidden" name="command_type" id="command_type"/>
	
      <table cellpadding="0" cellspacing="0"> 
		
		<tr>
			<td colspan="2" class="tr_distance"></td>
		</tr>
		
		<tr>
		  <td>
			<span>1级类</span>
		  </td>
		  <td>
            <select name="type_1" id="type_1" onchange="on_select_change_type1();">
            </select>
		  </td>
		</tr>
		<tr>
		  <td>
			<span>2级类</span>
		  </td>
		  <td>
            <select name="type_2" id="type_2" onchange="on_select_change_type2();">
            </select>
		  </td>
		</tr>
		<tr>
		  <td>
			<span>3级类</span>
		  </td>
		  <td>
            <select name="type_3" id="type_3">
            </select>
		  </td>
		</tr>
				
		<tr>
			<td colspan="2" class="tr_distance"></td>
		</tr>
		
        <tr>
          <td>
            <span>文件0</span>
          </td>
          <td>
            <span id="span_file_0"></span>
            <input type="file" name="file_0" id="file_0" />
          </td>
        </tr>
        <tr>
          <td>
            <span>文件1</span>
          </td>
          <td>
            <span id="span_file_1"></span>
            <input type="file" name="file_1" id="file_1" />
          </td>
        </tr>
        <tr>
          <td>
            <span>文件2</span>
          </td>
          <td>
            <span id="span_file_2"></span>
            <input type="file" name="file_2" id="file_2" />
          </td>
        </tr>
        <tr>
          <td>
            <span>文件3</span>
          </td>
          <td>
            <span id="span_file_3"></span>
            <input type="file" name="file_3" id="file_3" />
          </td>
        </tr>
        <tr>
          <td>
            <span>文件4</span>
          </td>
          <td>
            <span id="span_file_4"></span>
            <input type="file" name="file_4" id="file_4" />
          </td>
        </tr>
		
		<tr>
			<td colspan="2" class="tr_distance"></td>
		</tr>
		
		<tr>
		  <td>
			<span>商品名称</span>
		  </td>
		  <td>
			<input type="text" name="goods_name" id="goods_name" value="" />
		  </td>
		</tr>
		
		<tr>
		  <td>
			<span>商品名称2</span>
		  </td>
		  <td>
			<input type="text" name="goods_name_view" id="goods_name_view" value="" />
		  </td>
		</tr>
		
		<tr>
		  <td>
			<span>等级限制</span>
		  </td>
		  <td>
			<input type="text" name="level" id="level" value="1" />
		  </td>
		</tr>
		<tr>
		  <td>
			<span>排序</span>
		  </td>
		  <td>
			<input type="text" name="order_index" id="order_index" value="" />
		  </td>
		</tr>
		<tr>
		  <td>
			<span>性别(0女, 1男)</span>
		  </td>
		  <td>
            <select name="sex" id="sex">
                <option value="0">女</option>
                <option value="1">男</option>
            </select>
		  </td>
		</tr>
		
		<tr>
		  <td>
			<span>是否新品(0为新 1:旧)</span>
		  </td>
		  <td>
            <select name="is_new" id="is_new">
                <option value="0">新品</option>
                <option value="1">旧品</option>
            </select>
		  </td>
		</tr>
		
		<tr>
		  <td>
			<span>是否可售(0为不可售 1:可售)</span>
		  </td>
		  <td>
            <select name="is_sell" id="is_sell">
                <option value="1">在售</option>
                <option value="0">停售</option>
            </select> 
		  </td>
		</tr>
		
		<tr>
		  <td>
			<span>大层级(礼品大小, 0:小, 1:大)</span>
		  </td>
		  <td>
			<input type="text" name="z_1" id="z_1" value="1" />
		  </td>
		</tr>
		<tr>
		  <td>
			<span>小层级</span>
		  </td>
		  <td>
			<input type="text" name="z_2" id="z_2" value="1" />
		  </td>
		</tr>
		
		<tr>
			<td colspan="2" class="tr_distance"></td>
		</tr>
		
		<tr>
		  <td>
			<span>有效时间(秒)</span>
		  </td>
		  <td>
			<input type="text" name="time" id="time" value="1" />
		  </td>
		</tr>
		<tr>
		  <td>
			<span>金币价格</span>
		  </td>
		  <td>
			<input type="text" name="gold" id="gold" value="0" />
		  </td>
		</tr>
		<tr>
		  <td>
			<span>比索价格</span>
		  </td>
		  <td>
			<input type="text" name="money" id="money" value="0" />
		  </td>
		</tr>
		
		<tr>
			<td colspan="2" class="tr_distance"></td>
		</tr>
		
		<tr>
		  <td>
			<span>有效时间1(秒)</span>
		  </td>
		  <td>
			<input type="text" name="time1" id="time1" value="0" />
		  </td>
		</tr>
		<tr>
		  <td>
			<span>金币价格1</span>
		  </td>
		  <td>
			<input type="text" name="gold1" id="gold1" value="0" />
		  </td>
		</tr>
		<tr>
		  <td>
			<span>比索价格1</span>
		  </td>
		  <td>
			<input type="text" name="money1" id="money1" value="0" />
		  </td>
		</tr>
		
		<tr>
			<td colspan="2" class="tr_distance"></td>
		</tr>
		
		<tr>
		  <td>
			<span>有效时间2(秒)</span>
		  </td>
		  <td>
			<input type="text" name="time2" id="time2" value="0" />
		  </td>
		</tr>
		<tr>
		  <td>
			<span>金币价格2</span>
		  </td>
		  <td>
			<input type="text" name="gold2" id="gold2" value="0" />
		  </td>
		</tr>
		<tr>
		  <td>
			<span>比索价格2</span>
		  </td>
		  <td>
			<input type="text" name="money2" id="money2" value="0" />
		  </td>
		</tr>
		
		<tr>
			<td colspan="2" class="tr_distance"></td>
		</tr>
		
		<tr>
		  <td>
			<span>有效时间3(秒)</span>
		  </td>
		  <td>
			<input type="text" name="time3" id="time3" value="0" />
		  </td>
		</tr>
		<tr>
		  <td>
			<span>金币价格3</span>
		  </td>
		  <td>
			<input type="text" name="gold3" id="gold3" value="0" />
		  </td>
		</tr>
		<tr>
		  <td>
			<span>比索价格3</span>
		  </td>
		  <td>
			<input type="text" name="money3" id="money3" value="0" />
		  </td>
		</tr>
		
		<tr>
			<td colspan="2" class="tr_distance"></td>
		</tr>
		
		<tr>
		  <td>
			<span>加魅力</span>
		  </td>
		  <td>
			<input type="text" name="charm" id="charm" value="0" />
		  </td>
		</tr>
		<tr>
		  <td>
			<span>加勇气</span>
		  </td>
		  <td>
			<input type="text" name="courage" id="courage" value="0" />
		  </td>
		</tr>
		<tr>
		  <td>
			<span>加体力</span>
		  </td>
		  <td>
			<input type="text" name="power" id="power" value="0" />
		  </td>
		</tr>
		<tr>
		  <td>
			<span>加精力(人缘)</span>
		  </td>
		  <td>
			<input type="text" name="energy" id="energy" value="0" />
		  </td>
		</tr>
		<tr>
		  <td>
			<span>加人品</span>
		  </td>
		  <td>
			<input type="text" name="quality" id="quality" value="0" />
		  </td>
		</tr>
		<tr>
		  <td>
			<span>加资产(加金币)</span>
		  </td>
		  <td>
			<input type="text" name="assets" id="assets" value="0" />
		  </td>
		</tr>
		
		<tr>
			<td colspan="2" class="tr_distance"></td>
		</tr>
		
		<tr>
		  <td>
			<span>是否拥有镶嵌功能(0:不允许 1:允许)</span>
		  </td>
		  <td>
            <select name="is_inlay" id="is_inlay">
                <option value="0">不允许</option>
                <option value="1">允许</option>
            </select>
		  </td>
		</tr>
		<tr>
		  <td>
			<span>默认镶嵌的商品ID(0表示无默认)</span>
		  </td>
		  <td>
			<input type="text" name="inlay_id" id="inlay_id" value="0" />
		  </td>
		</tr>
		<tr>
		  <td>
			<span>库存数量(限量 -1:不限制)</span>
		  </td>
		  <td>
			<input type="text" name="total" id="total" value="-1" />
		  </td>
		</tr>
		<tr>
		  <td>
			<span>可使用时间(秒) -1:不限制</span>
		  </td>
		  <td>
			<input type="text" name="limit_time" id="limit_time" value="-1" />
		  </td>
		</tr>
		<tr>
		  <td>
			<span>可使用次数，-1:不限制</span>
		  </td>
		  <td>
			<input type="text" name="limit_count" id="limit_count" value="-1" />
		  </td>
		</tr>
		<tr>
		  <td>
			<span>上传时间</span>
		  </td>
		  <td>
			<input type="text" name="uptime" id="uptime" value="" />
		  </td>
		</tr>
        <tr>
          <td style="width: 200px;">
            <span>备注(商品描述)</span>
          </td>
          <td>
            <textarea cols="40" rows="10" name="remark"  id="remark"></textarea>
          </td>
        </tr>
        <tr>
          <td style="width: 200px;">
            <span>子商品(等级礼包里包含的商品)</span>
          </td>
          <td>
            <textarea cols="40" rows="10" name="gift_goods_list"  id="gift_goods_list"></textarea>
          </td>
        </tr>
        <tr>
          <td colspan="2">
            <input type="submit" style="width: 80px;" value="上传"  onclick="return submit_before();"/>
          </td>
        </tr>
      </table>
    </form>
  </body>
</html>
